<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<script type="text/javascript">
//alert(window == parent);
/*
window.parent.onload = function(){
	alert(1);
}
*/
/*
window.window.window.window.onload = function(){

}
*/

//window

//alert('a' in window);
var a = 10;

function b(){
	//window.a = 10;
	var a = 20;
	alert(a);
};
b();
alert(a);

</script>
<body>

<div id='sad' class='asda' lll='1'></div>
</body>
</html>